//
//  AppDelegate.h
//  SXH
//
//  Created by 房 国生 on 15/6/23.
//  Copyright (c) 2015年 lyss. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <BaiduMapAPI_Map/BMKMapComponent.h>
#import "DPAPI.h"
#import "WXApi.h"
#import "UserEntity.h"
#import "WrapperMainViewController.h"
#import "MainViewController.h"
#import "UIWindow+Extension.h"

@interface AppDelegate : UIResponder <UIApplicationDelegate, BMKGeneralDelegate,WXApiDelegate>

@property (strong, nonatomic) UIWindow *window;
@property (readonly, nonatomic) DPAPI *dpapi;
@property (strong, nonatomic) NSString *appKey;
@property (strong, nonatomic) NSString *appSecret;
@property (assign) BOOL file_from_local;
@property (assign) BOOL spot_from_local;
@property (nonatomic, strong) NSMutableArray *arrayBusiness;
@property (nonatomic, strong) NSMutableArray *arrayToilet;
@property (nonatomic, strong) NSMutableDictionary *cities;
@property (nonatomic, strong) NSDictionary *dicCurrentCity;

@property (nonatomic, strong) NSString *pushToken;

@property (nonatomic, strong) WrapperMainViewController *wrapperMainVC;
@property (nonatomic, strong) MainViewController *mainVC;

@property (nonatomic, strong) UIViewController *statusCustomView;
@property (nonatomic, strong) NSMutableArray *audioArray;
@property (nonatomic, assign) BOOL alreadyLunch;


+ (AppDelegate *)instance;
- (void) saveUserEntity:(UserEntity *) userEntity;
- (void) removeUserEntity;
- (void)timerFired;

- (void) showCustomView:(BOOL)show;

@end

